import request from '@/utils/request'

// 查询统计列表
export function listTracking(query) {
  return request({
    url: '/system/tracking/list',
    method: 'get',
    params: query
  })
}

// 查询统计详细
export function getTracking(id) {
  return request({
    url: '/system/tracking/' + id,
    method: 'get'
  })
}

// 新增统计
export function addTracking(data) {
  return request({
    url: '/system/tracking',
    method: 'post',
    data: data
  })
}

// 修改统计
export function updateTracking(data) {
  return request({
    url: '/system/tracking',
    method: 'put',
    data: data
  })
}

// 删除统计
export function delTracking(id) {
  return request({
    url: '/system/tracking/' + id,
    method: 'delete'
  })
}
